/**
 * 
 */
package com.dingjian.meal.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.dingjian.base.CoreEntity;
import com.dingjian.base.service.BaseService;
import com.dingjian.framework.base.controller.ListController;
import com.dingjian.meal.model.MealPerson;
import com.dingjian.meal.service.MealPersonService;

/**
 *
 * @author FengMy
 * @since 2012-6-8
 */
@Controller
@RequestMapping(value="meal/mealPerson/*")
public class MealPersonListController extends ListController {
	@Resource(name="mealPersonService")
	private MealPersonService mealPersonService;
	@Override
	protected CoreEntity createNewEntity() {
		return new MealPerson();
	}
	@Override
	protected String getListView() {
		return "meal/mealPersonList";
	}
	@Override
	protected String getEditView() {
		return "meal/mealPersonEdit";
	}
	@Override
	protected String getListMapper() {
		return "com.dingjian.meal.dao.MealPersonDao.select";
	}
	@Override
	protected BaseService<MealPerson> getService() {
		return mealPersonService;
	}
}
